/*
 * @Author: yangni
 * @Date: 2023-09-07 16:12:46
 * @LastEditors: yangni 920556271@qq.com
 * @LastEditTime: 2024-01-22 10:37:05
 * @Description: 消防详情页
 */
import 'package:get/get.dart';
import 'package:yt_devops/pages/devices/device_tab/model/device_item_model.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/utils/formats.dart';

class FireFightingDetailModel {
  String title;
  List<DetailItemModel> items;

  FireFightingDetailModel(this.title, this.items);

  static List<DetailItemModel> statusItems = [
    DetailItemModel(
      label: ResKey.warningLevel.tr,
      field: 'lev',
      format: Formates.fireFightingWarningLevelFormat,
    ),
    DetailItemModel(
      label: ResKey.faultType.tr,
      field: 'sft',
      format: Formates.fireFightingFaultTypeFormat,
    ),
    DetailItemModel(
      label: ResKey.startupType.tr,
      field: 'st',
      format: Formates.fireFightingStartupTypeFormat,
    ),
    DetailItemModel(
      label: ResKey.subValveStatus.tr,
      field: 'svs',
      format: Formates.fireFightingSubValveStatusFormat,
    ),
  ];
}
